package com.hbpa.pan.schedule.task;
import com.hbpa.pan.schedule.ScheduleTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author: BlcakTiger
 * @date: 2023/10/19 21:54
 * @contact: hsf6661@163.com
 * @description: 简单的定时任务
 */
@Component
@Slf4j
public class SimpleScheduleTask implements ScheduleTask {
    @Override
    public String getTaskName() {
        return "测试定时任务001";
    }

    @Override
    public void run() {
        log.info(getTaskName(),"正在执行...");
    }
}
